#include "Character/Character.h"
#include "Cats/CatsManager.h"
#include "CatSpeedInstruction.h"

using namespace cocos2d;

//===== DESTRUCTOR =====
CatSpeedInstruction::~CatSpeedInstruction(void)
{

}

//===== PUBLIC FUNCTIONS =====

/*!
    @function runInstruction
    @param		pCatsManager : CatsManager
				modify some value of the CatsManager class
    @result		run instruction to modify CatsManager class
*/
void CatSpeedInstruction::runInstruction(Character* pCharacter, CatsManager* pCatsManager)
{
	if( pCatsManager != 0 )
	{
		CCLog("Instruction (CatSpeed): Cat moving at %f times its speed.", _derivedValue);
		pCatsManager->updateDirectorSpeed(_derivedValue);
	}
}
